//
//  UITableViewCell+LF.m
//  AntFarms
//
//  Created by LF on 2017/3/1.
//  Copyright © 2017年 GG. All rights reserved.
//

#import "UITableViewCell+LF.h"

@implementation UITableViewCell (LF)

- (void)lf_setBottomLineToLeading
{
    //设置分割线顶头
    // Remove seperator inset
    if ([self respondsToSelector:@selector(setSeparatorInset:)]) {
        [self setSeparatorInset:UIEdgeInsetsZero];
    }
    // Prevent the cell from inheriting the Table View's margin settings
    if ([self respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
        [self setPreservesSuperviewLayoutMargins:NO];
    }
    // Explictly set your cell's layout margins
    if ([self respondsToSelector:@selector(setLayoutMargins:)]) {
        [self setLayoutMargins:UIEdgeInsetsZero];
    }
}

@end
